export function detaFormater(value) {
    let data = new Date(value)
    let year = data.getFullYear()
    let month = data.getMonth() + 1 < 10 ? `0${data.getMonth() + 1}` : data.getMonth() + 1
    let day = data.getDate() < 10 ? `0${data.getDate()}` : data.getDate()
    return `${year}-${month}-${day}`
}